define(function(require, exports){
	// var $ = require('jquery');
	var pubjs = require('pubjs');
	var view  = require('@base/view');

	// 无权限的提示页面
	var NoRights = view.container.extend({
		init: function(config) {
			config = pubjs.conf(config, {
				'class': 'P-noright'
			});
			this.Super('init', arguments);
		},
		afterBuild: function() {
			var el = this.getDOM();
			el.css({
				width: '100%',
				height: '100%'
			})
			var style = {
				'content': 'width: 100%;position: relative;top: 50%;-webkit-transform: translateY(-50%);transform: translateY(-50%);',
				'lock': 'height:64px;background-position: center center;background-repeat: no-repeat;background-image: url();',
				'title': 'height: 100px;line-height: 100px;font-size: 24px;text-align: center;'
			}
			el.html([
				'<div class="content" style="'+ style.content +'">',
				'<div class="lock" style="'+ style.lock +'"/>',
				'<div class="title" style="'+ style.title +'">'+ LANG('您没有访问权限！') + '</div>',
				'</div>'
			].join(''));
		}
	});
	exports.base = NoRights;
});